<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>面部方案详情管理</title>
	<meta name="decorator" content="default"/>
	<style type="text/css">
		 #bottom{height:100%;}
	</style>
	<script type="text/javascript">
		$(document).ready(function() {			
			$("#contentTable tbody tr").click(function(){
				$("#contentTable tbody tr").removeClass("select_active");
				$(this).addClass("select_active");
				var url = "${ctx}/expert/solutionFaceCare/detail?id=" + this.id;
				window.open(url,"solutionFaceAndCareFrame");
			});
			$("#contentTable tbody tr:first-child").click();
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/expert/solutionFace/detail?id=${solutionFace.id}">方案详情</a></li>
		<c:if test="${fn:length(solutionFace.productList) !=0}">
			<li><a href="${ctx}/expert/solutionFaceAndProduct/listDetail?solutionId=${solutionFace.id}">对应产品</a></li>
		</c:if>
		<c:if test="${fn:length(solutionFace.careList) !=0}">
			<li class="active"><a href="#">护理项目</a></li>
		</c:if>	
		<c:if test="${fn:length(solutionFace.caseList) !=0 }">
			<li><a href="${ctx}/expert/solutionFaceAndCase/listDetail?solutionId=${solutionFace.id}">案例</a></li>
		</c:if>	
		<c:if test="${fn:length(solutionFace.qaList) !=0}">	
			<li><a href="${ctx}/expert/solutionFaceAndQA/listDetail?solutionId=${solutionFace.id}">常见问题</a></li>
		</c:if>	
	</ul>
	<tags:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered ">
		<thead><tr><th>护理名称</th><th>护理周期</th><th>护理标准指导价</th><th>是否必须</th></tr></thead>
		<tbody>
		<c:forEach items="${page.list}" var="solutionFaceAndCare">
			<tr id='${solutionFaceAndCare.id}'>
				<td>${solutionFaceAndCare.name}</td>
				<td>${fns:getDictLabel(solutionFaceAndCare.duration, 'care_duration', '')}</td>
				<td>${solutionFaceAndCare.price}元</td>
				<td>${fns:getDictLabel(solutionFaceAndCare.needed, 'needed_type', '')}</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
	<div id="bottom">
		<iframe id="solutionFaceAndCareFrame" name="solutionFaceAndCareFrame" src="about:blank" style="overflow:visible;"
			scrolling="yes" frameborder="no" width="100%" height="500"></iframe>
	</div>
</body>
</html>
